<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <!-- 遍历数组 -->
    <div id="app">
    <ul>
        <li v-for="(item,index) in list">{{item}}--{{index}}
            <a href="#">aaa</a>
        </li>
    </ul>
    <!-- 遍历数字 -->
    <ul>
        <li v-for="item in 5" >{{item}}</li>
    </ul>
    <!-- 遍历对象 -->
    <h4>遍历对象</h4>
    <ol>
        <li v-for="(value,key) in ooo">{{key}}--{{value}}</li>
    </ol>
    </div>
    <script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
    <script>
        const app = new Vue({
            el:'#app',
            data:{
                list:[
                    '小脚','留恋','爱情哦','面包'
                ]
                ,
                ooo:{name:'翠花妹妹',age:'19',height:'175'}
            }
        })
    </script>
</body>
</html>